package com.bstek.bdf2.protal.home;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;

import com.bstek.bdf2.core.security.session.SessionRegistryImpl;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.data.provider.Page;
import com.bstek.utils.AppUtils;

 
/**

*@author created by zxq

*@date 2022年7月14日 

*@problem

*@answer

*@action  门户管理的处理
*         

*/

@Controller(HomeManagelMaintain.BEAN_ID)
public class HomeManagelMaintain{

	public static final String BEAN_ID="mes.HomeManagelMaintain";
	
	private final Logger logger = LoggerFactory.getLogger(HomeManagelMaintain.class);

	@Resource
	private HomeManagelDao homeManagelDao;
	
	 
	/** 
	 *  查询基本信息
	 * @param page
	 * @param parameter
	 * mes.HomeManagelMaintain#queryHomeManagel
	 */
	@DataProvider
	public void queryHomeManagel(Page<HomeManagel> page, Map<String, Object> parameter){
		this.homeManagelDao.queryHomeManagel(page, parameter);
	}
	 
	 
	/**
	 * 保存首页基本信息
	 * @param coll
	 * mes.HomeManagelMaintain#saveHomeManagel
	 */
	@DataResolver
	@Transactional(rollbackFor = Exception.class)
	public void saveHomeManagel(Collection<HomeManagel> coll){
		this.homeManagelDao.saveHomeManagel(coll);
	}
	
 
	
	 
	/** 
	 *  查询门户内容
	 * @param page
	 * @param parameter
	 * mes.ManageProtaMaintain#getData
	
	@DataProvider
	public Collection<Map<String, Object>> getData(Page<?> page, Map<String, Object> parameter) {

        return getMaps();

    }
	 */
}
